Skip to content

chore(build): drop minification from index bundler#1215

Merged
John-David Dalton (jdalton) merged 1 commit intomainfrom
chore/drop-minify-index-bundler
Apr 17, 2026
Merged

chore(build): drop minification from index bundler#1215
John-David Dalton (jdalton) merged 1 commit intomainfrom
chore/drop-minify-index-bundler

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

@jdalton John-David Dalton (jdalton) commented Apr 17, 2026

Summary

  • Removes the partial-minify branch (minifyWhitespace/minifyIdentifiers) in createIndexConfig so the index loader output is straight, unminified JavaScript — matching the rest of the prod build.
  • Adds an explicit minify: false to createIndexConfig so the "off" state is one obvious thing.
  • Drops the now-redundant minify: false arg from the two package-builder template callers (the util enforces it).

Why

One shape of output is easier to read, easier to grep when debugging, and eliminates a two-branched minify path that contributors had to reason about. We don't ship minified bundles anywhere, so there's no benefit to the partial version.

Test plan

  • pnpm run type passes
  • pnpm run build:cli succeeds and produces unminified output
  • CI green

Note

Low Risk
Build output formatting change only (minification toggling removed) with no runtime logic or security-sensitive behavior changes; main risk is unexpected bundle size/perf differences.

Overview
The index-loader esbuild config (createIndexConfig) no longer accepts a minify option and now always emits unminified output via an explicit minify: false, removing the previous partial-minification branch.

The package-builder templates for cli-package and cli-sentry-package are updated to stop passing minify: false, relying on the utility’s enforced behavior.

Reviewed by Cursor Bugbot for commit 32710d6. Configure here.

Removes the partial-minify branch (minifyWhitespace/minifyIdentifiers)
in createIndexConfig so the index loader is produced unminified, matching
the rest of the prod build config. Also drops the now-redundant
`minify: false` from the package-builder templates that called it.

Rationale: simpler, one shape of output, easier for contributors to read.
@jdalton John-David Dalton (jdalton) merged commit 00ef6f4 into main Apr 17, 2026
14 checks passed
@jdalton John-David Dalton (jdalton) deleted the chore/drop-minify-index-bundler branch April 17, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants